package com.xgj.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    @Bean
    public Queue importUsersQueue() {
        return new Queue("import-users-queue", true); // 第二个参数表示队列是否持久化
    }
}
